/*
 * CustomCalendar.java
 *
 * Created on February 6, 2008, 2:31 PM
 *
 */

package projectprophet.core;

import java.util.Calendar;
import java.util.HashMap;

/**
 *
 * @author Gyula Szentirmay
 */
public class SpecificCalendar extends ProjectCalendar
{
	
	public SpecificCalendar(ProjectCalendar parentCalendar)
	{
		super(parentCalendar);
	}

	public boolean isWorkDay(Calendar date)
	{
		if(spacialDays.containsKey(date))
		{
			final Boolean result = spacialDays.get(date);
			return result.booleanValue();
		}
		else return super.isWorkDay(date);
	}

	private HashMap<Calendar,Boolean> spacialDays = new HashMap<Calendar,Boolean>();
}
